package week_1.practice;

public class LinkedStackExample {
    public static void main(String[] args) {
     LinkedStack example = new LinkedStack();

     example.push("还没休息");
     example.push("怕你");
     example.push("突然闪了一下于是想起你");
     example.push("都是因为那灯泡");
     example.push("旧雨衣 到底放在哪里？");
     System.out.println("栈顶的歌词："+example.peek());
     System.out.println("栈是否为空："+example.isEmpty());
     System.out.println("入栈后歌词意群量："+example.size());
     example.pop();
     System.out.println("出栈后歌词意群量："+example.size());
     System.out.println("现在的歌词："+"\n"+ example.toString());
    }
}
